package com.sdkj.recruit.model;

public enum Experience {

	Experience1("不限", 1), 
	Experience2("应届生", 2), 
	Experience3("1年以内", 3), 
	Experience4("1-3年", 4),
	Experience5("3-5年", 5),
	Experience6("5-10年", 6),
	Experience7("10年以上", 7);
	 // 成员变量  
    private String name;  
    private int index;  
    // 构造方法  
    private Experience(String name, int index) {  
        this.name = name;  
        this.index = index;  
    }  
    // 普通方法  
    public static String getName(int index) {  
        for (Experience c : Experience.values()) {  
            if (c.getIndex() == index) {  
                return c.name;  
            }  
        }  
        return null;  
    }  
    // get set 方法  
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
    public int getIndex() {  
        return index;  
    }  
    public void setIndex(int index) {  
        this.index = index;  
    }  

}
